home *** CD-ROM | disk | FTP | other *** search
/ Acorn User: The Risc OS Music Utilities CD / Acorn User: The Risc OS Music Utilities CD.iso / RISCSTER / RISCSRC3.ZIP / h / runimage < prev   
Encoding:
Text File  |  2000-08-21  |  4.2 KB  |  173 lines

  1. /*
  2.        _             __
  3.   ____(_)__ _______ / /____ ____
  4.  / __/ (_-</ __(_-</ __/ -_) __/
  5. /_/ /_/___/\__/___/\__/\__/_/
  6.  
  7. Napster client for RISC OS
  8. Copyright (C) 2000 Robert Dimond
  9.  
  10. Portions are based on gnap by Ryan Dahl.
  11.  
  12. This program is free software; you can redistribute it and/or modify
  13. it under the terms of the GNU General Public License as published by
  14. the Free Software Foundation; either version 2 of the License, or
  15. (at your option) any later version.
  16.  
  17. This program is distributed in the hope that it will be useful,
  18. but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  20. GNU General Public License for more details.
  21.  
  22. You should have received a copy of the GNU General Public License
  23. along with this program; if not, write to the Free Software
  24. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
  25.  
  26. Bransley Cottage, Cleobury Mortimer, Kidderminster, WORCS. DY14 0BZ
  27. England. robdimond@cwcom.net
  28.  
  29. */
  30.  
  31. #include <stdio.h>
  32. #include <string.h>
  33. #include <stdlib.h>
  34.  
  35. #include "OS:os.h"
  36. #include "OS:wimp.h"
  37. #include "OS:messagetrans.h"
  38. #include "OS:wimpreadsysinfo.h"
  39. #include "OS:font.h"
  40. #include "OS:osgbpb.h"
  41.  
  42. #include "proto.h"
  43. #include "library.h"
  44.  
  45.  
  46.  
  47. #define C_INCOMING 10
  48. #define C_DOWNLOADS 5
  49. #define ISIZE 1024*64
  50.  
  51. #define MESSAGE_DELAY 200
  52.  
  53. #define CONNECTWIN_OKICON 7
  54. #define CONNECTWIN_PASSWD 3
  55. #define CONNECTWIN_USERNM 1
  56. #define CONNECTWIN_NEWUSR 4
  57. #define CONNECTWIN_EMAIL 5
  58. #define CONNECTWIN_COND 8
  59. #define CONNECTWIN_CONB 9
  60. #define CONNECTWIN_REMD 11
  61. #define CONNECTWIN_ALTS 12
  62. #define CONNECTWIN_ALTST 13
  63.  
  64. #define MESSAGEWIN_DISMISS 2
  65. #define MESSAGEWIN_MESSAGE 1
  66.  
  67. #define SEARCHWIN_ARTIST 2
  68. #define SEARCHWIN_TRACK 3
  69. #define SEARCHWIN_MAXRES 4
  70. #define SEARCHWIN_BRD 7
  71. #define SEARCHWIN_LTD 11
  72. #define SEARCHWIN_FRD 16
  73. #define SEARCHWIN_BRC 8
  74. #define SEARCHWIN_LTC 12
  75. #define SEARCHWIN_FRC 17
  76. #define SEARCHWIN_BRI 9
  77. #define SEARCHWIN_LTI 13
  78. #define SEARCHWIN_FRI 18
  79. #define SEARCHWIN_LTM 14
  80. #define SEARCHWIN_OK 19
  81.  
  82. #define GETWIN_FILE 0
  83. #define GETWIN_USER 1
  84. #define GETWIN_CANCEL 4
  85. #define GETWIN_OK 3
  86. #define GETWIN_PROGB 5
  87. #define GETWIN_PROGN 6
  88. #define GETWIN_BAR 7
  89.  
  90. #define INFOWIN_AUTHOR 2
  91. #define INFOWIN_VERSION 3
  92. #define INFOWIN_PURPOSE 1
  93.  
  94. #define MESSWIN_USER 1
  95. #define MESSWIN_MESS 2
  96. #define MESSWIN_SEND 3
  97.  
  98. #define AUTHOR "Robert Dimond (Drobe software)"
  99. #define VERSION "1.12 (21st August 2000)"
  100. #define PURPOSE "Client for Napsterâ„¢"
  101.  
  102. void connectedchange(int new);
  103. void motd_addline(char * text);
  104. void search_finish(void);
  105. void get_closewin(int);
  106. void search_updatebar(int);
  107. void mess_openwindow(wimp_block * block);
  108. void mess_closewindow(wimp_block * block);
  109. void mess_nullevent(wimp_block * block);
  110. void mess_usermessage(wimp_block * block);
  111. void mess_mouseclick(wimp_block * block);
  112. void mess_menuselect(wimp_block * block);
  113. void mess_redrawwindow(wimp_block * block);
  114. void mess_keypressed(wimp_block * block);
  115.  
  116. int error(os_error *);
  117.  
  118. void ui_alert(char * text);
  119. void ui_messalert(char * token);
  120. void ui_openconnectwin(void);
  121. void ui_iconbaricon(void);
  122. void ui_loadwindows(void);
  123. void ui_loadsprites(void);
  124. void ui_loadmessages(void);
  125. void ui_setupmenus(void);
  126. void ui_close(void);
  127. void ui_connectok(void);
  128. void ui_newuserclick(void);
  129. void ui_altserverclick(void);
  130. void ui_openconmenu(void);
  131. void ui_opencon2menu(void);
  132. void ui_updatecond(void);
  133. void ui_opencommenu(wimp_i icon);
  134.  
  135. void motd_openwin(void);
  136. void motd_redrawwin(wimp_block * block);
  137. void motd_reset(void);
  138. void motd_init(void);
  139. void motd_drawblock(wimp_draw * area, int more, int xorigin, int yorigin);
  140.  
  141. void search_openwin(void);
  142. void search_updatecond(void);
  143. void search_ok(void);
  144. void search_new(void);
  145. void search_ungrey(void);
  146. void search_update(search_result * result);
  147. void search_redrawwin(wimp_block * block);
  148. void search_drawblock(wimp_draw * area, int more, int xorigin, int yorigin);
  149. void search_click(wimp_block * block);
  150. void search_browse(int search_no);
  151. void search_complete(mp3file * file);
  152. void search_changetype(search_type new);
  153. void search_downloadclick(int search_no);
  154. char * search_trim(char * in, int len);
  155. void search_getok(int tno);
  156. void get_init(void);
  157. void ui_storedetails(void);
  158. void ui_loaddetails(void);
  159. void message_send(int search_no);
  160. void motd_addline_actual(char * text);
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.